package com.niiwoo.activity.event.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description 授信类型
 * @Author zq
 * @Date 2018/3/23
 */
@Getter
@AllArgsConstructor
public enum CreditTypeEventEnum {

    TIANCHENG(Byte.valueOf("1"), "天秤授信");

    private Byte type;

    private String desc;

    public static CreditTypeEventEnum valueOf(Byte code) {
        for (CreditTypeEventEnum typeEventEnum : CreditTypeEventEnum.values()) {
            if (code.byteValue() == typeEventEnum.getType()) {
                return typeEventEnum;
            }
        }
        return null;
    }
}
